Часто в программах на Python требуется проверить, является ли хотя бы один элемент структуры данных истинным. Да, можно написать цикл для перебора итерируемого объекта и проверки того, является ли каждый элемент истинным или ложным. Но функция any() – более эффективный и питонический способ достижения того же результата.
Часто в программах на Python требуется проверить, является ли хотя бы один элемент структуры данных истинным. Да, можно написать цикл для перебора итерируемого объекта и проверки того, является ли каждый элемент истинным или ложным. Но функция any() – более эффективный и питонический способ достижения того же результата.
That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.